<?php 
$query = array(
		'fields' => array('articlecat.*'),
		'conditions' =>array()
		);	
$articlecat = POP::exe('[@@:UM articlecat][@@:QU find:all]',$query);
?>
<div class="top-nav">
	<div class="top-nav-box">
    	<?php if ( empty($myifo['username']) ) { ?><div class="login-info">亲，欢迎你来到爱搜货！请<a href="<?php echo $this->_url('user/login'); ?>" class="toLoginBtn">登录</a><a href="<?php echo $this->_url('user/agreement'); ?>">免费注册</a></div>
		<?php } else { ?>
		<div class="login_success_info">HI !<a href="<?php echo $this->_url('user/index'); ?>" class="username"><?php echo $myifo['username'];?></a><a href="" class="member_rank"></a><a href="<?php echo $this->_url('user/logout'); ?>" class="exit">退出</a></div>
		<?php } ?>
        <div class="top-menu-box">
        	<ul class="top-menu">
            	<li class="top-menu-item"><a href="<?php echo $this->_url('default/index');?>" class="menu-hd">爱搜货首页</a></li>
                <li class="top-menu-item">
                	<div class="top-menu-sub">
                    	<a href="#" class="menu-hd hasSub">买家中心<b></b></a>
                    </div>
                    <div class="top-sub-menu">
                        <a href="<?php echo $this->_url('cart/index/');?>">我的购物车</a>					
                        <a href="<?php echo $this->_url('user/usermyorder');?>">我的订单</a>
                        <a href="<?php echo $this->_url('custom/uservip');?>">我是VIP客户</a>
                        <a href="<?php echo $this->_url('user/address');?>">收货地址</a>
                        <a href="<?php echo $this->_url('guestbook/index/');?>">我的留言</a>						
                    </div>
                </li>
                <li class="top-menu-item">
                	<div class="top-menu-sub">
                    	<a href="#" class="menu-hd hasSub">卖家中心<b></b></a>
                    </div>
                    <div class="top-sub-menu">
                        <a href="<?php echo $this->_url('usershop/shopmyorder');?>">订单管理</a>
                        <a href="<?php echo $this->_url('goods/ulist');?>">商品管理</a>
                        <a href="<?php echo $this->_url('user/shopinfo');?>">店铺设置</a>
                        <a href="<?php echo $this->_url('usershop/shoppayment');?>">支付设置</a>
                        <a href="<?php echo $this->_url('user/shopnotice');?>">店铺公告</a>						
                    </div>
                </li>
                <li class="top-menu-item">
                	<div class="top-menu-sub">
                    	<a href="#" class="menu-hd hasSub">服务中心<b></b></a>
                    </div>
                    <div class="top-sub-menu">
					<?php foreach($articlecat as $val) { $val= $val['articlecat'];?>
                        <a href="<?php echo $this->_url('article/index/?id='.$val['id']);?>"><?php echo $val['cat_name'];?></a>
					<?php } ?>	
                    </div>
                </li>
                <li class="top-menu-item last">
                	<div class="top-menu-sub">
                    	<a href="#" class="menu-hd hasSub">收藏夹<b></b></a>
                    </div>
                    <div class="top-sub-menu">
                        <a href="<?php echo $this->_url('user/favorite/?type=shop');?>">店铺的收藏</a>
                        <a href="<?php echo $this->_url('user/favorite/?type=pro');?>">产品的收藏</a>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
